public class ArithmeticOperatorExercise1 {
    public static void main(String[] args){
        //??????
        int i = 1;//(1)temp = 1 (2)i=i+1 (3)i=temp
        i = i++;//?????i = i++???????????i++??++i??
        System.out.println(i);// i=1
        int i1 = 1;
        i1 = ++i;//(1)i1=i+1 (2)temp = 2 (3)i1=temp
        System.out.println(i1);//i1=2

        //?????????????
        int s1 = 10;
        int s2 = 20;
        int s = s1++;
        System.out.print(s);//10 ???s1++
        System.out.println(s2);//20
        s = --s2;
        System.out.print(s);//19
        System.out.println(s2);//19 ???--s2. 

        //??????绹??59??????????xx????xx??
        //?·?????????int ???? days weeks:days/7 leftdays:days%7
        int days =59;
        int weeks = days / 7;
        int leftdays = days % 7;
        System.out.println(days);
        System.out.println(weeks);
        System.out.println(leftdays);
        System.out.println(days + "?? ??" + weeks + "??????"
        + leftdays + "??");

        //???????[234.5] ???:5/9*(???????-100)
        //?????????????java?????????
        double huashi = 234.5;
        double sheshi = 5.0 / 9 * (huashi - 100);
        System.out.println("???????" + huashi
        + "????????????" + sheshi);
    }
    
}
